package com.rbac.admin.model.dto;

import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotNull;

/**
 * 用户信息更新请求参数
 */
@Data
public class UserDTO {

    @NotNull(message = "用户ID不能为空")
    private Long id;

    private String nickname;

    @Email(message = "邮箱格式不正确")
    private String email;

    private String phone;

    private Integer gender;

    private String avatar;

    private String remark;
}